package com.xuhai.blog19.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 登录有效期表
 *
 * @author Kakarot
 * @email ${email}
 * @date 2023-02-03 21:21:42
 */
@Data
@TableName("sys_expires")
public class ExpiresEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键自增
	 */
	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;
	/**
	 * 用户编号
	 */
	@TableField("user_id")
	private Integer userId;
	/**
	 * token值
	 */
	private String token;
	/**
	 * 有效期
	 */
	private Date expires;

}
